type ThisType = { name: string };
function eating(this: ThisType) {
  console.log(this.name + " eating");
}

const info = {
  name: "why",
  eating: eating,
};

// 隐式绑定
info.eating();

// 显示绑定
eating.call({ name: "kobe" });
eating.apply({ name: "james" });

export {};
